package com.woorigil.android.sample.domain.product;

import java.util.ArrayList;
import java.util.List;


public class DealList {
	private int totalCount;
	private List<Deal> deals;
	
	public DealList(int totalCount, List<Deal> deals) {
		this.totalCount = totalCount;
		this.deals = deals;
	}
	
	public void addDeals(List<Deal> newDeals) {
		if (deals == null) {
			this.deals = new ArrayList<Deal>();
		}
		this.deals.addAll(newDeals);
	}

	public List<Deal> getDeals() {
		return deals;
	}
	public void setDeals(List<Deal> sales) {
		this.deals = sales;
	}
	public int getTotalCount() {
		return totalCount;
	}
	public void setTotalCount(int totalCount) {
		this.totalCount = totalCount;
	}
}
